package guoanmaker.provider.business.repository;


import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;


import guoanmaker.provider.business.model.ProviderBusiness;

public interface ProviderBusinessRepository extends JpaRepository<ProviderBusiness, String>, JpaSpecificationExecutor<ProviderBusiness> {
	@Query("select t from ProviderBusiness t where t.personalUser.id = :userid ")
	ProviderBusiness findBusiness( @Param("userid") String userid);
}
